Skip to content

feat: add dynamic command routing system with 214+ commands#45

Closed
kvnloo wants to merge 10 commits intomainfrom
opencode
Closed

feat: add dynamic command routing system with 214+ commands#45
kvnloo wants to merge 10 commits intomainfrom
opencode

Conversation

@kvnloo
Copy link
Owner

@kvnloo kvnloo commented Nov 26, 2025

Summary

  • Implements pre-response behavioral gates that intelligently route requests to optimal commands based on keyword classification and complexity assessment
  • Creates comprehensive command routing system covering 214+ commands across 25 categories
  • Uses @ reference syntax in CLAUDE.md to ensure routing rules are actually loaded

Key Changes

  • .claude/rules/command-routing.md (541 lines) - Full command reference with:

    • Pre-response classification triggers (13 categories)
    • Complete command listings for all 25 categories
    • Routing algorithm with complexity-based routing
    • Quick reference matrix for common patterns
    • Fallback hierarchy when uncertain
  • CLAUDE.md - Updated with @.claude/rules/command-routing.md reference

  • docs/architecture/command-routing-map.md - Architecture explanation

  • docs/architecture/enforcement-gate-design.md - Multi-layer enforcement strategy

Command Categories Covered

Category Count Purpose
/sc:* 26 SuperClaude meta-routing
/sparc:* 18 SPARC methodology modes
/pm:* 38 Project management
/github:* 19 GitHub operations
/swarm:* 17 Swarm strategies
/hive-mind:* 12 Collective intelligence
/automation:* 10 Workflow automation
+ 18 more categories 74+ Various operations

Test plan

  • Verify @ syntax loads command-routing.md in new sessions
  • Test keyword classification with sample requests
  • Verify fallback to /sc:pm for ambiguous requests
  • Confirm routing to /sparc:sparc-modes and /swarm:swarm-modes works

🤖 Generated with Claude Code

kvnloo and others added 9 commits November 22, 2025 01:41
Added SuperClaude framework files to project for version control and team collaboration:

Core Framework Files:
- PRINCIPLES.md - Software engineering principles
- RULES.md - Behavioral rules and standards
- FLAGS.md - Mode activation flags
- RESEARCH_CONFIG.md - Deep research configuration
- BUSINESS_PANEL_EXAMPLES.md - Business analysis examples
- BUSINESS_SYMBOLS.md - Symbol systems for communication

Behavioral Modes:
- MODE_Brainstorming.md - Collaborative discovery
- MODE_Business_Panel.md - Multi-expert business analysis
- MODE_DeepResearch.md - Systematic investigation
- MODE_Introspection.md - Meta-cognitive analysis
- MODE_Orchestration.md - Intelligent tool selection
- MODE_Task_Management.md - Hierarchical task organization
- MODE_Token_Efficiency.md - Symbol-enhanced communication

Additional Files:
- VERSION - Framework version tracking
- README.md - Integration documentation
- scripts/update-superclaude.sh - Automated update script

Version: v4.1.9
Source: https://github.com/SuperClaude-Org/SuperClaude_Framework

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Added OpenCode framework configuration for migration from SuperClaude:
- agent/ - Agent definitions and configurations
- command/ - Command implementations
- hooks/ - Hook integrations
- mode/ - Behavioral modes
- plugin/ - Plugin configurations
- opencode.jsonc - Main OpenCode configuration
- README.md - OpenCode setup documentation

This establishes the foundation for OpenCode integration alongside
the existing SuperClaude framework.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Added extensive documentation covering:

Project Analysis:
- claude_folder_inventory_20251122.md - Complete folder structure analysis
- opencode_migration_architecture_20251122_020301.md - Migration architecture

Migration Documentation:
- migration_analysis_summary.md - Migration strategy summary
- migration_quick_reference.md - Quick reference guide
- migration_visual_guide.md - Visual migration guide

Research:
- 06-research/indoor-farming-systems.md - Indoor farming systems research
- research/research_opencode_analysis_20251122_015116.md - OpenCode analysis

This documentation provides comprehensive context for the evolve
framework architecture and migration strategy.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Added comprehensive migration reports:

Migration Reports:
- migration-reports/automation-migration-report.md - Automation migration
- migration-reports/ui-commands-migration.md - UI commands migration
- sparc-migration-report.md - SPARC methodology migration
- swarm-migration-report.md - Swarm orchestration migration

These reports document the migration strategy from SuperClaude to
OpenCode, including automation patterns, UI commands, SPARC methodology,
and swarm orchestration approaches.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Added scripts to automate project management system migration:

Scripts:
- complete_pm_migration.py - Complete PM migration automation
- migrate-pm-commands.sh - PM command migration script

These scripts facilitate the migration of the CCPM (Claude Code PM)
system to the evolve framework, automating command updates, path
standardization, and configuration synchronization.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Implement pre-response behavioral gates that intelligently route requests
to optimal commands based on keyword classification and complexity assessment.

Key changes:
- Add .claude/rules/command-routing.md with full 214+ command reference
- Update CLAUDE.md with @ reference syntax to load routing rules
- Add docs/architecture/command-routing-map.md explaining the architecture
- Add docs/architecture/enforcement-gate-design.md for multi-layer enforcement

The routing system covers 25 command categories including:
- /sc:* (26) - SuperClaude meta-routing
- /sparc:* (18) - SPARC methodology modes
- /swarm:* (17) - Swarm strategies
- /pm:* (38) - Project management
- /github:* (19) - GitHub operations
- And 20 more categories

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions bot added configuration documentation Improvements or additions to documentation tests size/XL labels Nov 26, 2025
Add research documentation from agent analysis sessions:
- Agent catalog with complete 54-agent reference
- CCPM framework analysis findings
- Enforcement analysis for behavioral gates
- SuperClaude framework analysis data

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@kvnloo kvnloo closed this Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

configuration documentation Improvements or additions to documentation size/XL tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant